package com.kgc.controller;
import com.kgc.common.Dto;
import com.kgc.service.HomeService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HomeController {
    @Resource
    private HomeService homeService;
    @RequestMapping(value = "/api/p/index/queryBanner",method = RequestMethod.POST)
    public Dto queryBanner() throws Exception {
        return homeService.queryBanner();
    }
}
